<?php

namespace app\models;

class Users extends \yii\db\ActiveRecord{
    public static function tableName()
    {
        return '{{users}}';
    }
    public function getPhone()
    {
        return $this->hasMany(Phone::class, ['user_id' => 'id']);
    }
}